package com.risen.project.common;

import lombok.Getter;

@Getter
public enum ResponseStatusCode {

    SUCCESS("0000", "请求成功"),
    PARAMETER_VALIDATE_IS_FAIL("0001", "参数校验失败"),
    REQUEST_OTHERS_API_IS_FAIL("0003", "请求三方接口失败"),
    ILLEGAL_ACCESS("0004", "非法访问"),
    HTTP_REQUEST_METHOD_NOT_SUPPORTED("0005","不支持的请求方式"),
    NET_IS_WRONG("0012", "网络发生错误"),
    FAIL("9999", "请求失败");

    private final String code;
    private final String msg;

    ResponseStatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
